module.exports = {
	strategies: ["lib-node"],
	rollup: {
		env: {
			SIU_BROWSERS: "Firefox >= 53,Edge >= 15,Chrome >= 58,iOS >= 10.1,Android >= 5"
		},
		globalName: pkgName => {
			return pkgName;
		},
		transform(pkgInfo, rollupFormat, rollupConfig) {
		/**
		 *
		 * Custom rollup packaging
		 * 
		 * pkgInfo: pkg data
		 * 
		 *   {
		 *     path: current package path in <cwd>/packages,
		 * 		 name: package name
		 *     meta: package.json object of the package
		 *   }
		 * 
		 * rollupFormat: "browser" | "main" | "module" | "modern"
		 * 
		 * 
		 * E.g :
		 *
		 *    // 设置rollup入口文件
		 * 	  rollupConfig.input()
		 *
		 * 	  // 设置external参数
		 * 		rollupConfig.external.add("")
		 *    rollupConfig.external.delete("")
		 *
		 *    // 设置plugin
		 *    rollupConfig.plugin("ts").use(ts,[{...tsOptions}])
		 *
		 *    // 设置output
		 *
		 *    rollupConfig.output("browser" | "main" | "module" | "modern")
		 * 				.file()
		 * 				.format()
		 * 				.name()
		 * 				.globals.set("","")	 // .globals.delete("")
		 *
		 *    支持链式操作
		 *		 rollupConfig.input().external.add().end().plugin().use().end().output().file().end().end()
		 */
		}
	}
};
